package cn.itcast.fallback;

import cn.itcast.clients.NoteClients;
import cn.itcast.entity.Note;
import cn.itcast.entity.Result;
import org.springframework.cloud.openfeign.FallbackFactory;

public class NoteClientFallBackFactory implements FallbackFactory<NoteClients> {
    @Override
    public NoteClients create(Throwable cause) {
        return new NoteClients() {

            @Override
            public Result noteAdd(Note note) {
                return null;
            }
        };
    }
}
